import { Component } from '@angular/core';

@Component({
  selector: 'app-myc02',
  templateUrl: './myc02.component.html',
  styleUrls: ['./myc02.component.css']
})
export class Myc02Component {
  // 数据库中存储性别这类字段都会采用数字，1代表男，0代表女
  list = [
    { name: 'mika1', age: 18, sex: 1 },
    { name: 'mika2', age: 28, sex: 0 },
    { name: 'mika3', age: 38, sex: 1 },
    { name: 'mika4', age: 48, sex: 3 },
  ];

}
